//
//  LXFoodDetailModel.m
//  灵秀
//
//  Created by 李田 on 17/3/18.
//  Copyright © 2017年 tianyao. All rights reserved.
//

#import "LXFoodDetailModel.h"

@implementation LXFoodDetailModel

//1.关键字装换  key

- (void)setValue:(id)value forKey:(NSString *)key
{
    
    [super setValue:value forKey:key];
    // 判断关键字的key
    if ([key isEqualToString:@"description"]) {
        
        // 替换系统的key
        [super setValue:value forKey:@"Description"];
    }
}

// 防奔溃
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

//重写
- (NSString *)description{
    
    return [NSString stringWithFormat:@"%@  %@ %@",_name,_min_price,_Description];
    
}

@end
